package com.learn.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.learn.service.SysUserService;
import com.learn.dao.TeacherDao;
import com.learn.entity.TeacherEntity;
import com.learn.service.TeacherService;


@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherDao teacherDao;

    @Autowired
    private SysUserService sysUserService;

    @Override
    public TeacherEntity queryObject(Long id) {
        TeacherEntity entity = teacherDao.queryObject(id);


        return entity;
    }

    @Override
    public List<TeacherEntity> queryList(Map<String, Object> map) {
        List<TeacherEntity> list = teacherDao.queryList(map);
        for (TeacherEntity entity : list) {
        }
        return list;
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return teacherDao.queryTotal(map);
    }

    @Override
    public void save(TeacherEntity teacher) {
        teacherDao.save(teacher);
    }

    @Override
    public void update(TeacherEntity teacher) {
        teacherDao.update(teacher);
    }

    @Override
    public void delete(Long id) {
        teacherDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        teacherDao.deleteBatch(ids);
    }

}
